require(['/js/config.js'],() =>{
	require(['template','header','footer'],(template)=>{
		class Commodity{
			constructor () {
				this.getList()
			}
			getList () {
				const id = location.search.slice(4)
				$.get(`http://www.xiongmaoyouxuan.com/api/search`, {
					word:"面包",
					start:0,
					sort:0,
					couponOnly:NaN,
					minPrice:0,
					maxPrice:99999
				},resp => {
					console.log(resp)
					if (resp.code === 200) {
						const { list } = resp.data
						console.log(list)
						$('#goodsClassify').html(
							template('classifyTempalte',{
								list
							})
						)
					}
				})
			}
		}
		new Commodity()
	})
})